package com.lss.study.algorithm.niuke;

import java.util.Scanner;
import java.util.TreeSet;

/**
 * 功能描述：
 *
 * @Date: 2022/2/19 18:21
 */
public class T3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int num = scanner.nextInt();
            TreeSet<Integer> set = new TreeSet<>();
            for (int i = 0; i < num; i++) {
                set.add(scanner.nextInt());
            }
            for (Integer integer : set) {
                System.out.println(integer);
            }
        }
    }
}
